<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<div class="show-info">
<div class="midtab" style="margin-left: 1%">
	<a data-target="cg_thisWeek" onclick="thisWeek();" data-sign="this" class="cg_thisWeek current cur " href="javascript:void(0)" >本周周报</a><img src="${ctxPath }/images/icon/import.png" class="inited">&nbsp;&nbsp;&nbsp;
	<a data-target="cg_nextWeek" onclick="nextWeek();" data-sign="next" class="cg_nextWeek" href="javascript:void(0)" >下周计划</a>&nbsp;&nbsp;
</div>
    <table class="tab-show this-table">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
        <tr>
	    	<th>
            	<label>标题：</label>
        	</th>
         	<td colspan="3">${model.title }</td>
		</tr>
        <tr>
	    	<th>
            	<label>开始日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.startDate }" pattern="yyyy-MM-dd"/></td>
         	<th>
            	<label>结束日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.endDate }" pattern="yyyy-MM-dd"/></td>
		</tr>
        <tr>
	    	<th>
            	<label>内容：</label>
        	</th>
         	<td colspan="3">${model.content }</td>
		</tr>
        <tr>
	    	<th>
            	<label>总工时：</label>
        	</th>
         	<td colspan="3">${not empty model.totalHours ? model.totalHours : '0'}小时</td>
		</tr>
        <tr>
	    	<th>
            	<label>创建人姓名：</label>
        	</th>
         	<td>${model.createName }</td>
         	<th>
            	<label>修改人姓名：</label>
        	</th>
         	<td>${model.updateName }</td>
		</tr>
        <tr>
	    	<th>
            	<label>创建时间：</label>
        	</th>
         	<td><fmt:formatDate value="${model.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
         	<th>
            	<label>修改时间：</label>
        	</th>
         	<td><fmt:formatDate value="${model.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
    </table>
    <div class="opt"></div>
    <table class="tab-show next-table" style="display: none;">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
    	<tr>
	    	<th>
            	<label>下周计划标题：</label>
        	</th>
         	<td colspan="3">${model.nextWeekTitle }</td>
		</tr>
        <tr>
	    	<th>
            	<label>下周计划开始日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.nextWeekStartDate }" pattern="yyyy-MM-dd"/></td>
         	<th>
            	<label>下周计划结束日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.nextWeekEndDate }" pattern="yyyy-MM-dd"/></td>
		</tr>
        <tr>
	    	<th>
            	<label>下周计划内容：</label>
        	</th>
         	<td colspan="3">${model.nextWeekContent }</td>
		</tr>
        <tr>
	    	<th>
            	<label>下周计划总工时：</label>
        	</th>
         	<td colspan="3">${not empty model.nextWeekTotalHours ? model.nextWeekTotalHours : '0'}小时</td>
		</tr>
        <tr>
	    	<th>
            	<label>创建人姓名：</label>
        	</th>
         	<td>${model.createName }</td>
         	<th>
            	<label>修改人姓名：</label>
        	</th>
         	<td>${model.updateName }</td>
		</tr>
        <tr>
	    	<th>
            	<label>创建时间：</label>
        	</th>
         	<td><fmt:formatDate value="${model.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
         	<th>
            	<label>修改时间：</label>
        	</th>
         	<td><fmt:formatDate value="${model.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
    </table>
</div>
<script>
function thisWeek(){
	$(".cg_thisWeek").attr("class","cg_thisWeek current cur ");
	$(".cg_nextWeek").attr("class","cg_nextWeek");
	$(".this-table").show();
	$(".next-table").hide();
}
function nextWeek(){
	$(".cg_nextWeek").attr("class","cg_nextWeek current cur ");
	$(".cg_thisWeek").attr("class","cg_thisWeek");
	$(".this-table").hide();
	$(".next-table").show();
}
</script>